<!--
 * Copyright © 2022 XXXXXXXXX
 * @Author: zhangxiang
 * @Date: 2022-07-19 09:42:10
 * @LastEditors: zhangxiang
 * @LastEditTime: 2022-11-02 15:34:20
 * @Description:
 *
-->

<template>
  <div class="page404-container">
    <img class="bg" src="@/assets/imgs/404/bg.png" alt="404" />
    <div class="main">
      <div class="title">404</div>
      <div class="subtitle">
        您没有即将开启页面的访问权限，如需相关权限请联系管理员
      </div>
      <el-button
        type="primary"
        class="common-btn btn"
        @click="toHome"
      >回首页</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Page404',
  methods: {
    /**
     * @description: 去首页
     * @return {*}
     */
    toHome() {
      // 路由跳转
      this.$router.replace({
        path: '/' // 路径
      })
    }
  }
}
</script>

<style lang="less" scoped>
@import "@/assets/css/common.less";
.page404-container {
  height: 100vh;
  background-color: #f4f4f6;
  .bg {
    width: 100%;
  }

  .main {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    .title {
      .textStyle(42px , 600, #4a4a4a);
      line-height: 59px;
    }
    .subtitle {
      .textStyle(20px , 400, #C3C3C3);
      line-height: 28px;
    }
    .btn {
      margin-top: 30px;
    }
  }
}
</style>
